package com.ssms.dao;

import com.ssms.model.Academy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AcademyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Academy record);

    int insertSelective(Academy record);

    Academy selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Academy record);

    int updateByPrimaryKey(Academy record);

    List<Academy> selectAll();

    Academy selectByName(String academyName);

    Academy selectByNo(String academyNo);

    List<Academy> selectPage(@Param("start") int start, @Param("size") int size, @Param("searchValue") String searchValue);

    int selectPageCount(@Param("searchValue") String searchValue);
}